<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>QCMIS管理系统</title>
		<link href="css/css.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
		<!--
		body {
			margin-left: auto;
			margin-top: auto;
			margin-right: auto;
			margin-bottom: auto;
		} 
		a:link {
			color: #006600;
			text-decoration: none;
		}
		a:visited {
			text-decoration: none;
		}
		a:hover {
			text-decoration: none;
		}
		a:active {
			text-decoration: none;
			color: #006600;
		}
		 
		-->
		</style>  
      </head>
		
	<body>				 		
    	<s:form action="login" method="post"  onsubmit="return validate();" validate="false">
			<s:textfield name="username" label="用户名" />
			<s:password name="password" label="密 码" />
			<s:submit value="submit" label="登 录"/>
		</s:form>
	</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
 
function validate() {
    if(document.getElementsByName("user.username")[0].value == ""){
        alert("对不起，请先输入 \"用户名\"。 ");
        document.getElementsByName("user.username")[0].focus();
        return false;
    }

    if(document.getElementsByName("user.password")[0].value == ""){
        alert("对不起，请输入 \"密码\"。 ");
        document.getElementsByName("user.password")[0].focus();
        return false;
    } 
    return true;
}
//-->
</SCRIPT>